Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.theme.editor.ui--engines

This contribution is part of XML component org.nuxeo.theme.editor.ui inside nuxeo-theme-editor-5.8.jar

Extension Point

Extension point engines of component ThemeService.

Contributed Items

  • <engine name="editor">
    
          <renderer element="theme">
            <filter>add widget</filter>
            <filter>collect xmlns</filter>
          </renderer>
    
          <renderer element="page"/>
    
          <renderer element="section"/>
    
          <renderer element="cell"/>
    
          <renderer element="fragment"/>
    
        </engine>
  • <engine name="page-editor">
    
          <renderer element="theme">
            <filter>add widget</filter>
            <filter>collect xmlns</filter>
          </renderer>
    
          <renderer element="page">
            <filter>add widget</filter>
            <filter>collect xmlns</filter>
            <filter>set style</filter>
            <filter>set layout</filter>
            <filter>set element id</filter>
            <filter>create initial section</filter>
          </renderer>
    
          <renderer element="section">
            <filter>add widget</filter>
            <filter>set element name</filter>
            <filter>remove scripts</filter>
            <filter>set style</filter>
            <filter>set layout</filter>
            <filter>set element id</filter>
          </renderer>
    
          <renderer element="cell">
            <filter>add widget</filter>
            <filter>set element name</filter>
            <filter>set style</filter>
            <filter>set layout</filter>
            <filter>set element id</filter>
            <filter>insert json model</filter>
          </renderer>
    
          <renderer element="fragment">
            <filter>add widget</filter>
            <filter>set element name</filter>
            <filter>set style</filter>
            <filter>write fragment tag</filter>
            <filter>control fragment visibility</filter>
            <filter>make draggable</filter>
            <filter>set element id</filter>
            <filter>insert json model</filter>
          </renderer>
    
        </engine>
  • <engine name="fragments-only">
    
          <renderer element="theme">
            <filter>add widget</filter>
            <filter>collect xmlns</filter>
          </renderer>
    
          <renderer element="page">
            <filter>add widget</filter>
          </renderer>
    
          <renderer element="section"/>
    
          <renderer element="cell"/>
    
          <renderer element="fragment">
            <filter>add widget</filter>
            <filter>add identifiable container</filter>
            <filter>write fragment tag</filter>
          </renderer>
    
        </engine>
  • <engine name="preview">
    
          <renderer element="theme"/>
    
          <renderer element="page"/>
    
          <renderer element="section"/>
    
          <renderer element="cell"/>
    
          <renderer element="fragment">
            <filter>add widget</filter>
            <filter>set style</filter>
            <filter>write fragment tag</filter>
          </renderer>
    
        </engine>

XML Source

<extension point="engines" target="org.nuxeo.theme.services.ThemeService">

    <!-- This engine renders the theme editor's UI -->
    <engine name="editor">

      <renderer element="theme">
        <filter>add widget</filter>
        <filter>collect xmlns</filter>
      </renderer>

      <renderer element="page"/>

      <renderer element="section"/>

      <renderer element="cell"/>

      <renderer element="fragment"/>

    </engine>

    <!-- This engine renders the editor view of the page canvas -->
    <engine name="page-editor">

      <renderer element="theme">
        <filter>add widget</filter>
        <filter>collect xmlns</filter>
      </renderer>

      <renderer element="page">
        <filter>add widget</filter>
        <filter>collect xmlns</filter>
        <filter>set style</filter>
        <filter>set layout</filter>
        <filter>set element id</filter>
        <filter>create initial section</filter>
      </renderer>

      <renderer element="section">
        <filter>add widget</filter>
        <filter>set element name</filter>
        <filter>remove scripts</filter>
        <filter>set style</filter>
        <filter>set layout</filter>
        <filter>set element id</filter>
      </renderer>

      <renderer element="cell">
        <filter>add widget</filter>
        <filter>set element name</filter>
        <filter>set style</filter>
        <filter>set layout</filter>
        <filter>set element id</filter>
        <filter>insert json model</filter>
      </renderer>

      <renderer element="fragment">
        <filter>add widget</filter>
        <filter>set element name</filter>
        <filter>set style</filter>
        <filter>write fragment tag</filter>
        <filter>control fragment visibility</filter>
        <filter>make draggable</filter>
        <filter>set element id</filter>
        <filter>insert json model</filter>
      </renderer>

    </engine>

    <!-- This engine renders all fragments in a linearized fashion -->
    <engine name="fragments-only">

      <renderer element="theme">
        <filter>add widget</filter>
        <filter>collect xmlns</filter>
      </renderer>

      <renderer element="page">
        <filter>add widget</filter>
      </renderer>

      <renderer element="section"/>

      <renderer element="cell"/>

      <renderer element="fragment">
        <filter>add widget</filter>
        <filter>add identifiable container</filter>
        <filter>write fragment tag</filter>
      </renderer>

    </engine>

    <!-- This engine renders fragment previews -->
    <engine name="preview">

      <renderer element="theme"/>

      <renderer element="page"/>

      <renderer element="section"/>

      <renderer element="cell"/>

      <renderer element="fragment">
        <filter>add widget</filter>
        <filter>set style</filter>
        <filter>write fragment tag</filter>
      </renderer>

    </engine>

  </extension>